<template>
  <div class="app-container">
    <el-tabs v-model="activeName" type="border-card">
      <el-tab-pane label="待办任务" name="first">
        <runtime ref="runtime" />
      </el-tab-pane>
      <el-tab-pane label="已办任务" name="second">
        <historic ref="historic" />
      </el-tab-pane>

    </el-tabs>
  </div>
</template>

<script>
import runtime from './runtime.vue'
import historic from './historic.vue'
export default {
  name: 'Tasks',
  components: { runtime, historic },
  data() {
    return {
      activeName: 'first'
    }
  },
  created() {
    if (this.$route.query && this.$route.query.tabinx === '2') {
      this.activeName = 'second'
    }
  }
}
</script>
